import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '@/views/Home.vue'


Vue.use(VueRouter)

const routes = [
  {
    path:'/home',
    name:'Home',
    component: Home
  },
  {
    path:'/fenlan',
    name: 'FenLan',
    component: () => import('@/views/FenLan.vue')
  },
  {
    path:'/shoucang',
    name: 'ShouCang',
    component: () => import('@/views/ShouCang.vue')
  },
  {
    path:'/gengduo',
    name: 'GengDuo',
    component: () => import('@/views/GengDuo.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
